﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CustomerOrderInfo.ascx.cs" Inherits="CustomerOrderInfo" %>
<asp:Panel ID="pnlContactData" runat="server" Width="220px" Direction="LeftToRight" HorizontalAlign="Left" BackColor="Silver">
    <table cellpadding="0">
	    <caption><b>Contact Info</b></caption>
	    <tr>
	        <td >
                <asp:Label ID="Label1" runat="server" Text="ListID" Width="80px"></asp:Label></td>
	        <td ><asp:textbox id="tbListid" runat="server" Enabled="false" Width="128px"></asp:textbox></td>
		</tr>
        <tr>
		    <td>First Name</td>
		    <td><asp:textbox id="tbFirstName" tabIndex="2" runat="server" Width="128px"></asp:textbox></td>				
		</tr>
        <tr>
            <td>Last Name</td>
            <td><asp:TextBox ID="tbLastName" runat="server" tabIndex="3" Width="128px"></asp:TextBox></td>
        </tr>
         <tr>
            <td>Address</td>
            <td><asp:TextBox ID="tbAddr" runat="server" TabIndex="4" Width="128px"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Address2</td>
            <td><asp:TextBox ID="tbAddr2" runat="server" TabIndex="5" Width="128px"></asp:TextBox></td>
        </tr>
        <tr>
            <td>City</td>
            <td><asp:TextBox ID="tbCity" runat="server" TabIndex="6" Width="128px"></asp:TextBox></td>
        </tr>
        <tr>
            <td>State</td>
            <td><asp:TextBox ID="tbState" runat="server" TabIndex="7" Width="128px"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Zip Code</td>
            <td><asp:TextBox ID="tbZip" runat="server" TabIndex="8" Width="128px"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Country</td>
            <td><asp:TextBox ID="tbCountry" runat="server" TabIndex="9" Width="128px"></asp:TextBox></td>
        </tr>
		<tr>
            <td>Pri Phone</td>
            <td><asp:TextBox ID="tbPriPhone" runat="server" tabIndex="10" Width="128px"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Sec Phone</td>
            <td><asp:TextBox ID="tbSecPhone" runat="server" tabIndex="11" Width="128px"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Email</td>
            <td><asp:TextBox ID="tbEmail" runat="server" MaxLength="50" TabIndex="13" Width="128px"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Shipping Info different from billing info</td>
            <td><asp:CheckBox ID="cbShip" runat="server" 
                    oncheckedchanged="cbShip_CheckedChanged" AutoPostBack="True" /></td>
        </tr>
    </table>
    <asp:Panel runat="server" Visible="false" ID="pnlShip">
        
    <table cellpadding="0">
    <caption style="width: 220px"><b>Shipping Info</b></caption>
        <tr>
		    <td>First Name</td>
		    <td><asp:textbox id="tbshipFirstName" tabIndex="2" runat="server" Width="128px"></asp:textbox></td>				
		</tr>
        <tr>
            <td>Last Name</td>
            <td><asp:TextBox ID="tbshipLastName" runat="server" tabIndex="3" Width="128px"></asp:TextBox></td>
        </tr>
         <tr>
            <td>Address</td>
            <td><asp:TextBox ID="tbshipAddr" runat="server" TabIndex="4" Width="128px"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Address2</td>
            <td><asp:TextBox ID="tbshipAddr2" runat="server" TabIndex="5" Width="128px"></asp:TextBox></td>
        </tr>
        <tr>
            <td>City</td>
            <td><asp:TextBox ID="tbshipCity" runat="server" TabIndex="6" Width="128px"></asp:TextBox></td>
        </tr>
        <tr>
            <td>State</td>
            <td><asp:TextBox ID="tbshipState" runat="server" TabIndex="7" Width="128px"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Zip Code</td>
            <td><asp:TextBox ID="tbshipZip" runat="server" TabIndex="8" Width="128px"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Country</td>
            <td><asp:TextBox ID="tbshipCountry" runat="server" TabIndex="9" Width="128px"></asp:TextBox></td>
        </tr>
	</table>
    </asp:Panel>
    <asp:Label ID="lblError" runat="server" Font-Size="Small" ForeColor="Red"></asp:Label><br />
    <asp:Button ID="btnSubmit" runat="server" Text="Submit" onclick="btnSubmit_Click"/>
</asp:Panel>